package com.example.teamwork3.Service;


import com.example.teamwork3.Mapper.GradeMapper;
import com.example.teamwork3.Model.Grade;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class GradeService {

    @Resource
    GradeMapper gradeMapper;

    public Grade SelectGradeById(String stu_id,String stu_name){
        Grade grade=gradeMapper.SelectGradeById(stu_id);
        if(grade!=null&&grade.get姓名().equals(stu_name))
            return grade;
        return null;
    }


}
